import Vue from 'vue';
import Vuex from 'vuex';
import framework from './modules/framework';
import auth from './modules/auth';
import createLogger from 'vuex/dist/logger';
import i18n from '../components/i18n/i18n.js';

Vue.use(Vuex);

const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
  modules: {
    framework,
    auth,
  },
  strict: debug,
  plugins: debug ? [createLogger()] : []
});